thesis midtern