Section 6.3 using pointers works