Add spec and code for editing todo items.