Create agent.class.php