add solution to class7/ex3