add ex1.45(done\!)