made it use using namespace std for cout and cerr