Adding classes to item defs