Implement map method.
Change map to use foldRight.
Filter