Added the function for the Categories