more examples with threads creation