handle ordered and unordered Lists (resolves #6)