2nd day of code club refactoring