Replaced 'enum' with 'enum class'