Adding layout classes

Initial draft of layout classes.