implements StateTensor.

Next implement contract between them