initial commit. working calc logic