refactor code into objects
whitespace