add exemple with threads