Add logic to create shopping lists

Logic now takes into account the threshold specified
by the user.