fix 9th problem and finish solution for 10