Building the basic structure