added rewards to the example