started calculator logic