solution ruby-1-1