Code for problem 1 worked for me.
Just a test.