Creating igneous rocks

We learnt that igneous rock is created when rock melts in a volcano, the melted rock flows out and freezes.  We learnt that lava freezes and creates granite. We know that granite is used in kitchens as worktops. 
We learnt that white and milk chocolate can melt, mix and freeze.  This is the same process to create igneous rock.  
We now understand the process of creating igneous rock now!