Pase Test case 5 & 6

Filter function