Finished all codes and plots.