simplify the expression z2-z(z+3)+3z