Added Agent.java