New LP filter function and implemented in the test1 file