priorities implemented - task 5