what is the similarties of all three rocks types