Sample code and notes from the book Design Patterns in Ruby