Created Departments resource and added index parent-child dynamism