Here is the solution for training exercise 4.
ballrefinement_solution.ipynb
ballrefinement_solution.pdf