added gen_text class for consistent text formatting