pseudocode for createNewJob