Added Q8 solution.