added example.rb to give a quick example of usage