resolve Problem4.