20th exercise of ruby