fixing an error and adds the full function of some methods of the calculator