Added plot to te that in turn calls plotArray