add doctest for Chop