added simple thread demo