Learning List and Trees