gamma code basics