first commit, reference code for python/c++