 modelS[0].clone(),
      modelS[1].clone()
    ];

    for (var i = 0; i < steps; i++) {
      localModelZ = Model.get_mixture_coef(localModelS);

      localModelX = Model.sample(localModelZ);
      dx = localModelX.get(0);
      dy = localModelX.get(1);
      penState = localModelX.get(2);

      coordinates.push([dx, dy, penState]);

      localModelS = Model.update(localModelX, localModelS);
    }
    return coordinates;

  }


});</script>
