The composition of 2 maps, f:X->Y and g:Y->Z, is h:X->Z. h=gf.