pthread example 1 added