the process of making rocks is shown in three different stages