- go on implementing getCategories method