Add solution for 5_refactoring challenge