last example of chapter 9: classes/vector_v5.py