How many ways are rocks formed?