5. (10%) Show that $H = Ip - \frac{1}{p}Jp$ is idempotent, where $J_p$ is a matrix of ones with order $p \times p$.