Added codes and figures