start the converison of procedural code to oop using mvc