add problem8 solution