Use class abstractions like Set and List.