Updated example to include enumerated types and reflection