add some cpp snipptes