Added simple thread class
temp