Adds from_file and from_url classmethods to the Text class.