Define Head and Tail instances explicitly