Chapter3 exercise changes