created a main thing because that works now
added skeleton code for threads