Added Algebra class.