color codes now enums; example simplified