Text class definition change to fit v3.3 conventions