add problem9 solution