refactoring episode 2