magnetic field as shown in figure.