added foldRight fun stuff