Completed ruby exercise 26.