Here are a few general comments, inspired by some observations on the homework: