add the notes of c++ primer chapter 8