add solution to class7/ex1 fails cop