updating ch7 ex2 again