Orange tree class in ruby