add solution to class5/ex1