Showing category name and author name using user defined functions