thread example from class
this is the thread example from class