add 4 codes and plots