Show that (1-2*x*y+1)/(x^2*y-x) simplifies to -2/x

Nevermind, I solved it.

(1-2*x*y+1)/(x^2*y-x) = (2-2*x*y)/(x*(x*y-1)) = (2*x*y-2)/(x*(1-x*y)) = (-2*(1-x*y))/(x*(1-x*y)) = -2/x