Completed simple chat implementation