fixed calculator file to pass tests