Create adapter.cpp