Eleventh exercise of ruby