This is an example of implementing a priority queue using core data