Code samples to demonstrate inheritance in ruby