this is my first pthread coding.