refactoring with coffee