Add CriticalSection Example