Create spawnFunctions.java