Setting up structure of program