Refactored Content functions into Content and Text classes.