priority (int 0 and 1), removed getInput(), marked code with matric. no.