Adding initial code of the agent