Create subCore.cpp