Minimal change in the way appModel is called

Instead of removing from appModel's List todos directly, a function is called.