refactor sarah's code to break into smaller methods
finish refactoring sarah's code into smaller methods and debug.