implement AgentProgram->usesMentalModels