This type of rock is formed as a result of cooling lava