Chapter2 test example