Homework 3 from Ruby Tutorials