General Demonstration of Learning Layout