Final version of plot4