Seventh exercise of ruby