some auto pointer examples