Create middle.h

The header file for middle.cpp