uplaoding problem 6 script
fixed syntax errors for problem 6 script