Creation works like this: The 'reset' function is called with an argument of 0. I.e. reset(0); Every time a 'reset' occurs, the items own 'reset' function is called with an argument of 1. I.e. reset(1);