Fully working chat program