Laid out basic structure of the code.