added dotProduct method