Create magic.cpp