answer for exercise 1, 3
implement system call for setting priority