Added Slot for Calculation and modified Code