hw-2: modified profs bad code
hw-2: first try at compiling threads