tutorial - Head and Tail example