Completed ruby exercise 3