This video goes through the steps needed to cook a hard boiled egg. Firstly, you will need to boil some water in a saucepan. You can then add the egg and boil for exactly 7 minutes; this will give you a slightly soft egg. Then, drain the water off and toss the egg around in the pan, which will crack the shell. Add some cold water to the pan and let the egg cool down, until you can pick it up. An easy way of peeling the egg is to roll it between your hand and a hard surface; you will now be able to easily take off the shell.
By following the steps in this video you will end up with a perfectly hard boiled egg.