Create agent.cpp