add thread examples