adding in classes for testing; slightly refactored Route