Formation Of Earths Magnetic Field