A thought experiment on reward and punishment