Turned the messaging file into a class.