Added CriticalSection example