Solution for Filter Elements challenge.