An OOP based gpsScript