implementing Route as a seperate class