config pattern three
Update code to use new config pattern