Design pattern samples in Ruby