use Seq instead of List

Seq is a better generalization for sequences than List.