added my save figure function
analysis script added