Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Basically everything you need to do:
After calling the update(message) method, you update the variable inside the class. When digest() is called, you work with this previously saved variable.
I checked, scripts of multiple calls to update() are not tested. For a single instance of a class, the update() method is called once.
p.s. Judging by your code, you are on the right track.