Added core class in main.cpp, some linking error to fix