update example.rb callback examples