updated class
added parameterized class test
Corrected multiplication bug in code