Explain each of the stages you just mentioned please