Wrote code for manager based model.