Writing basics for Chat,Message,History classes