add Position class for vector based operations