How are the earths layers alike and different?