Program is now read from stdin, rather than being hardcoded
Compiles with C++11