Created calculation method in base class