Completed ruby exercise 19.