Added foldRight and length