A simple Algebra program, written in Ruby