How sedimentary rocks are classified