ex1.9: update