I would like someone to check my reasoning here and, if my reasoning is correct, help me define a map to make a short exact sequence.
I am given a short exact sequence of chain complexes $$ 0\longrightarrow B\stackrel{f}{\longrightarrow} C\stackrel{g}{\longrightarrow} D\longrightarrow 0. $$ Let $C_f$ be the cone on $f$, so $(C_f)_n=B_{n-1}\oplus C_n$. And let $Cyl_g$ be the cylinder on $g$, so $(Cyl_g)_n=C_n\oplus C_{n-1}\oplus D_n$. Then there is a chain map $$ C_f\stackrel{\alpha}{\longrightarrow} Cyl_g $$ given by $\alpha(b,c)=(c,-f(b),0)$ where $c\in C_n$ and $b\in B_{n-1}$. Since $f$ is injective, $\alpha$ is injective. It seems to me that the cokernel of $\alpha$ should be $D[-1]\oplus D$, were $D[-1]$ is the shift of $D$. So, I should get a short exact sequence $$ 0\longrightarrow C_f\stackrel{\alpha}{\longrightarrow} Cyl_g\stackrel{\beta}{\longrightarrow} D[-1]\oplus D\longrightarrow 0. $$ My problem is defining $\beta$. I tried the obvious $\beta(c_1,c_2,d)=(g(c_2),d)$. But, when I checked, that did not define a chain map. Assuming my reasoning is correct, what should $\beta$ be? Thanks.
EDIT: The differential on $Cyl_g$ is given by $$ \partial(c_1,c_2,d)=(\partial c_1+c_2,-\partial c_2,\partial d -g(c_2)). $$ Then $$ \beta(\partial(c_1,c_2,d))=(-\partial g(c_2),\partial d-g(c_2)) $$ and $$ \partial(\beta(c_1,c_2,d))=(\partial g(c_2),\partial d). $$