Ruby exercises from the book "Learn to Program"