Simple chat application - following mixu's tutorial