Use the new Genfun#addMethod instead of importing Genfun.addMethod