Implemented Magnetic Field