refactor to Text class and return two lists of Message objects which can be manipulated further if needed (i.e. to insert into DB)