construct the basic structure of programs