This rock contains different coloured grains. Some of the grains are large and the rock is very hard. What type of rock is this?

 

You can't see any grains in this rock, but it is full of wavy lines. What type of rock is it?

It is made of layers that are squashed together. It is quite soft and has visible grains in it. What type of rock is this?