Assignment7 with filters