create Entity class, Passenger and Elevator inherit it