start of YesNo type-class