Implemented the filter_columns method