work on storing messages (tests do not pass)