Implemented Iterator on ActiveRecord