Template classes for agentss