sample code for googles apps script