Implemented take,takeWhile.