A remake of GLSC in c++