solved problems 108 and 110 :D