finished plot3 and 4