added save
chapter 5 exercise 1