adding plot3 for 3rd exercise