add solution to class5/ex4