Add missing `filter' definition in ex2.40