Convert filter to class based. Closes #44.

Signed-off-by: crynobone <crynobone@gmail.com>