problem 1 a-d, tex init