For making plot 3