16th exercise of ruby