Updated agent.h to compound.h