adding category resource with repository