Completed ruby exercise 4