Add sample GM code