plot 2, 3, 4 added with their codes