add ch2 doc and code