Installed has_scope gem for data filtering