ManualResetEvent example
edits