Implement ch1.2.5's examples
Answer ex1.20