your head as if you're going to put it in a pony tail and hold it in place with your non-dominant hand.
then start to twist your hair around into a bun shape following the same direction as above depending on which hand is dominant.
with the tip of the pencil, grab a bit of hair from halfway in the to the center of the bun on the side of your dominant hand.
pull the pencil to the edge of the bun and push the tip gently towards your scalp and then run it under the bun along your scalp.
poke it back up through the other side of the bun.
that should hold it 