added figures folder and made the figures save