Started homework 12. Partially done with problem 3. Almost fully done with problem 4. It is long so I am guessing there are many errors and typos.