queryEligibleOffers function first version
Fixed merge conflict
good job