seperate chop.rb into class and action file.