Completed ruby exercise 35.