add simple stat calculation code
calculate stat job