Cohomology Ring of the $n$-Torus