Cooper's Beginning Ruby - Ch. 6 final exercise