Add equals method to Chat class