code for ch10