refactored some code
Merge branch 'master' of https://github.com/willhall88/tech-test