Prepare the program structure