declare a method to get the categories