working plot3