configuration via class