ex1.solution