calculator functionality added