Adding solution for calculator