Hi, I have been given a lab in physics. I need to create a electromagnet. The power source is a D battery, and I am given 8 nails and 3 meters of wire. I was thinking the best way to construct it would be to cut the heads off the nails and make the most solid core I can. I do not have to use all the nails, or all the wire. Any ideas?