Use 'enum class' instead of plain 'enum' for better type safety.