simple OO modelling in ruby