Implements routes, includes passing tests