migrated functions to class
badword class complete