Add the working code for adding items in a category