program for round robin