trying to use class and instance in the Algebra module