How to find direction of magnetic field.