Taming C++, episode 2: RAII