solved Problem7