the methods 'dotProduct' and 'crossProduct' are added