Adding example code in converse tutorial for threads