add solution to class6/ex2
modify class5/ex2:21,22