Building the main structure