The numerator of the first line should be 1+2z^(-1)+z^(-2). Simply an issue with the superscript, the solution is still correct.