Create midpointlistener.cpp