Working simulation example at index.js. Implements step fn and tests.