added item.h, item.c to manage items and attributes