Update: Added solutions to problems 9 to 12