added examples for ch16 and ch18