Practice in Design Pattern in Ruby