test loop syntax
create a function to get priority of the assgined list
create a function to show tasks[i] register value