add solution to class7/ex4