vopt: Implement Variant class