add num classify from pat add test foldleft
add num classify from pat add test foldleft