added controller class with rand_idea, and idea_by_category method