refactoring Lists and started on Trees