See examples/algebra.rb for a simple example.
examples/algebra.rb
All of the code is copyrighted by Google and is released under MIT license.