class Agent modified