Calculation class and spec