For a homework problem I'm trying to find a sequence $(f_n)_{n\in \mathbb N}$ of functions such that the functions map from $[0,1]$ to $[0,1]$, the sequence shall not converge pointwise almost everywhere, but $\int_0^1 f_n (x)dx$ shall converge to $0$, as $n$ goes to infinity.
My intuition was to use the functions: $f_n:= \sin(\pi x)^{2n}$. As I believe $\lim_{n\to \infty} \int_0^1f_n(x)dx =0$, but I believe it converges pointwise to zero on the interval except at the fixed zeros. I have no clue how to approach this now and any help would be appreciated.