solved Problem6