Delete g(t) in task1&2, change the way to configure message rate:
r as the step to reset message budget, 0.1 infers that reset message
budget to 1 every 10 seconds.