Completed TextClass class