Worked examples from Chris Pine's Learn to Program using Ruby