made a vector class - need to work out how to apply velocity along direction