Added figure7 code.