Homework exercises from the Ruby course.