the examples from ch7 is finished.