Final Solution updated Problem # 3