section4: dot and cross product.