demo of code threading.