Some stuff done in c/c++ to keep track and have examples if needed