memory class added and live of agent