Solutiuon of first 9 scripts