Added volatile keyword demo