test for second textbook example