refactoring ch07 04, getting places