A JavaScript translation of the example code from Practical Object-Oriented Design in Ruby by Sandi Metz.