broken solution to practice question 2