Old C++ solutions, probably junk