code of fourth plot