Added priority to input
Made it easier to read in careers and added test