Let C be the boundary of the region bounded by the line $y = x$ and the parabola $y = x^2$, oriented counterclockwise. Calculate the line integral
$\int_C xy \, dx + y^2 \, dy$
by two methods:
(1) Directly (using the definition of the line integral);
(2) Using Green's Theorem.