I am reading Dummit and Foote on Exact Sequences and some of the 'diagrams that commute' have vertical arrows.

Can someone please help me with the LaTex for these diagrams.

I have given an example in the attachment "Exact Sequences - Diagrams with Vertical Arrows" - where I also frame my question (please see attachement)

I have also attached Dummit and Foote Section 10.5 page 381 which has two examples of the diagrams to which I refer.

Would be very grateful for help.

Peter