solution ruby-0-ex2