solve Problem#7