22nd exercise of ruby