added priority to the task model