Added tensor class