added raii demo