iteration 3: adds delete functionality to list items