laid out basic structure of code and commented plan.