Adds method tor retrieve categories as a list.