working on wait() notify()
thread done