ADded thread code to wait and finished join. Switched the lock to use the lock variable to sleep on.