putting GA into code: