Wrote bar_item_new API function
Wrote bar_new API function