Added code and image for plot3