There’s already a 1 head program for part 1. For part 2, more leg work. 1 head both looks at the situation, updates the meta data and writes/deletes.

I could sort of see how to write a 1 head program for part 3, but I knew it would take a long time and be complicated, so I didn’t do it.