working on some tutorials for c++
added some codes for basis