A ruby exercise for class.