refactoring is working for first 11 exercises