First code and figures