Completed ruby exercise 32.