Completed vec.py