Created interface IWaypoint, and modified Waypoint class to implement it.