Implement ch1.3.4's examples
Answer ex1.40
Answer ex1.41