adding vec2d class