added a first working (bad style) version of the enum extraction for developing tests