add solution to class5/ex3