17th exercise of ruby