Fix abstract class agent to class agent