MSF.h and MSF.cpp modified as per Sir's instructions