Model the Mind with Rules