[1] finish calculator operation logic