solution ex1