21st exercise of ruby