add solution to class5/ex5