Matrix representing a linear transformation

Let V be a vector space with basis v0,,vn and let a0,,an be scalars. Define a linear transformation T:VV by the rules T(vi)=vi+1 if i<n, and T(vn)=a0v0+a1v1++anvn. You don't have to prove this defines a linear transformation. Determine the matrix for T with respect to the basis v0,,vn, and determine the characteristic polynomial of T.