Update and rename agent.cpp to compound.cpp