update 10 chapter code