refactor ga examples