Add Problem8 code