add Chop.scala and ChopTest.scala