dispatchTask method updated. getNumberOfJobsToAssign method created with
annotations.