Restoring plot3.R with Project 1 version