Now mapTree is a functional operation