create encounter.cpp