First commit of the main.cpp for the client. (need to be modified)