copy patch.txt and the three source files into one dir and execure patch < patch.txt