made four threads

Still lots of duplicated code and still have not made each thread
unique