Completed ruby exercise 28.