Function for Outputting Category Data finished