new function spawnOccupation