Completed ruby exercise 20.