began writing methods to save messages