Threads

this is a working threads example