Update example.rb to use a method vs. a proc