updated vector2D classes and the example