example 3-1: using atoms to pattern match different values of 'g'