polish apriori

change define_method to def