Create obtain.cpp