serialization and deSerialization of files, new class
messagesRepositoryFile was created