prac8 solution