Added 3d plot function and figure to show MLE