elevator simulator in ruby