added example for thread