working through for comprehensions, foldLeft, foldRight