ruby exercise6