added HeadTail example