enhance consume example code.