added functionality to the second calculator