add hw8-2 solution