matlab base agent class initiated