finished vec.py