What type of rock is formed by depositing material in layers? igneous basalt metamorphic sedimentary