Added a take/dropwhile solution.