Eight exercise of ruby