added add_item function and new_item function