Every place that the word Serial appears (starts with a capital S, and ends with a full stop / period) replace with GSM. (Note the full stop / period again.)
Obviously you don't need to change it in the comments but it might help to make the code readable...
Serial uses pins 0 & 1, you want to try to use pins 2 & 3, hence the use of SoftwareSerial.