added threads demo