calculator working - some debuging required