Implementing Threads

made group1 and group2 threads. Still need to have group2 properly
terminate at end of code.