Add getCategories in the service class