use fork to spawn a new process