Script showing class inheritance in Ruby