moved main from C to C++ program to incorporate Window