Working Code (removal of unnecessary files)