My first solution to Alex Chaffee's learn_ruby problem 15.