add simpleAgent.c