Example 6. Interactive model with construction steps for user-determined values of n, k, and g