Complete part of exercise 7 of lesson 6: Refactoring