final submission codes and plots