completed chapter 3: strings, vectors, and arrays