First version of calculator