accessing a vecotr (chapter 1)