Code snippets while reading Practical OO Design in Ruby.