fixed calculator to immediate response, wrote sanity test