updated example and vector2d classes