finishing up the problem