add learning for autonomous agents