Initialized categories to an empty array.