updating ch7 ex1 again