Class Based config