added example for Thread class operations