demo of CGPathApply