Fully working version of filter.v for lab3!