Refactor list into a method
WIP: Implementing search on Purchase
Basic implementation of equality operator
Shorten == method
Extract search from grocerytracker.rb and refactor Purchase.all