assignment 4, task 1, ShiftFilter