model and rake
checkbox for factors
search field
has_many factors