Finish ex7, but it is too slow