Igneous rocks are further broken down into 2 subcategories called intrusive rocks and extrusive rocks. Rocks that cool from lava rather rapidly generally have a very fine texture with small or no crystals visible. Basalt is an example of an extrusive igneous rock. Lava is magma that has reached the surface of the Earth. Rocks that cool relatively slow generally have a more coarse texture with crystal being larger and more prevalent than extrusive rocks.
Granite is an example of an intrusive rock.
Which you remember is a slow cooling rock. Sedimentary rocks are rocks that are made up of fragments and pieces of other rocks that have been compacted and cemented together. Particles of sand, for example, that over time becomes compacted and cemented together will form sandstone. The top sample of sandstone originated from sediments of sand in a water environment. The bottom sample of sandstone originated from sediments deposited by the wind.