Measurement and analysis of magnetic field variation during a class 2b flare