Completed ruby exercise 33.