Added original version, compile instructions at the top of the main.cpp