Update core.cpp
Merge pull request #63 from albebas/patch-4

Update core.cpp