Programs like those in Fig. 8 could be simplified if App Inventor had a callback mechanism that could maintain the state associated with a particular method invocation in the callback closure. Many examples of global state could be made more local with callback closures. But such a mechanism would have to be designed with novices in mind.