working code for one topic and multiple rounds