TextGrid-constructor function

Create an instance of the TextGrid class.