refactoring for week #11 assignment