Implement ch2.2.2's examples
Answer ex2.24
Answer ex2.25
Answer ex2.26