Added takeWhile()