adding plot3 and script