Add basic filter method using a for loop.