Passing data structures in chapter2