Update chop.rb

Added different way to allocate a list