adds edit_priority method to List class