lab 2.12 and Vec class work