Move message printing into its own class