Represented route objects with a class