Adding basic functionality to Chat class