Formation Of Earths Layered Structure