A die is cast $3$ independent times. Let $X_i$ be the random variable representing the number on the face appearing at the $i$th cast. Let $Y$ be the random variable defined by $Y = \max(X_1,X_2,X_3)$. Find the C.D.F and P.D.F of $Y$.
Answer key gives: $g(y) = \frac1{6^3} (y^3 - (y-1)^3)$, $0<y<1$ as the p.d.f.
What I did was the following:
Assign to each $X_i$ the marginal density function: $f_i(x_i) = \frac16$ for $x_i \in \{1,..., 6\}$ and $0$ otherwise. Then because the $X_i$'s are independent and if $G$ is C.D.F of $Y$:
$$G(y) = P[Y \le y] = P[X_k \le y, k] = P(X_1 \le y) \times P(X_2 \le y) \times P(X_3 \le y) = \left( \sum_{x_k \le y} f_k(x_k) \right)^3 = \left( \frac{y}{6} \right)^3 = \frac1{6^3} y^3, 0 \le y < 1$$
So that $g(y) = \frac3{6^3}y^2$ which differs by $\frac1{6^3}(1 - 3y)$ from the answer key.
What did I do wrong?