Completed ruby exercise 25.