Model now handles priorities. See model.md for how to use. Also wrote test case for priorities.