Finishing Ruby's homework.