ch06 - mobile app - refactored business logic out of controller and into service.