Completed ruby exercise 13.