3 types of rocks formed. Over time, the layers are compressed and glued together.