watcher class for threading project implemented