iteration 4: adds update feature to each line item