wrote a sample threadclass to use