Lab 2 for cs3790 (threads)