moving vec2d into baseClasses