Added sample programs from ch16, ch18 and ch19.