Added F3, foldr implementation and list.toString() overridden