add ch10 middleware example