Adding class files and functions. Defining overall layout.