Provide clear explanations of the formation of three primary rock types: igneous, sedimentary, and metamorphic rocks. Describe how they evolve throughout the cycle and include an example for each type.