add refactoring homework