switch construct wasn't popular in ycp so I tested "state of popularity" in ruby here ;-)