creating bar table and bar structure