adds agents controller and model