I need to know how to factor the following expression:

x^6 - y^6

The teacher said that the answer is (x+y)(x-y)(x^4+x^2y^2+y^4)

I need to know HOW to factor this.

Does it have anything to do with making x^6 = (x^2)^3??