add solution to class4/ex1