implemented my app and added unit tests for main controller