An architecture for normative reactive agents