Creating a method to select the category structure