debugging calculator