fix the calculator example