Implement layout data structures
Implemented layout
Merge pull request #5 from yanhick/layout

Layout