Which type of rock most often has layers?