hw1 before pthread