added item.totalprice to function which times the item.quantity by the item.price to give the item.totalprice