finish basic function of calculator