Script showing inheritance in Ruby