OOD class in Ruby