fourth test green, next up -- code refactoring