An exercise in socioeconomic classes, and in Ruby classes