Completed ruby exercise 2