first verstion of calculator functionality