Ensuring Ethical Behavior from Autonomous Systems