add filter function for final exam - quiz lib