Elevator classes in ruby