What are some ways that earth is like a magnet?