y^3-y^2+3y-3 is what im factoring

the book says the answer is (y-1)(y^2+3)

i dont know how it gets there

heres what i try to do:

(y^3-y^2)+(3y-3)

-y^2(y-1) + 3(y-1)

(y-1)(-y^2+3)

what am i doing wrong?

as usual, thanks for any help. this site really helps me out