implement plot 2