Initial chat sample code.