Fixed compiler errors in createRoutePlan() method of the Person class