dbg buildin function
itemsPrice, itemWeight functions, passing array as parameter