Added tensor class.