this function looks like a method... why don't you put it in the JobsModel class?