show how threading could work