Adding functionality to add groceries attempt 2