added 3d plotting capablity