Added enum for c
Added foldr/3