Round Robin code
Function Declaration for update()