Completed ruby exercise 14.