import java.awt.List;
import java.util.ArrayList;
import java.util.*;


public class School {
	
	
	
	List<Student> StudentList= new ArrayList<Student>();
	

    public School(IList<PlayerVO> players)
    {
        Players = players;
    }

    public School add(PlayerVO PLayer_add)
    {
        
        IList<PlayerVO> Players_new = new List<PlayerVO>();
        for (int i = 0; i < Players.Count; i++)
        {
            Players_new.Add(Players[i]);

        }
        Players_new.Add(PLayer_add);
        
        School Team_new = new School(Players_new);
        return Team_new;
    }

    public School remove(PlayerVO PLayer_remove)
    {
        IList<PlayerVO> Players_new = new List<PlayerVO>();
        for (int i = 0; i < Players.Count; i++)
        {
            if (Players[i].Name != PLayer_remove.Name)
            {
                Players_new.Add(Players[i]);
            }

        }
        School Team_new = new School(Players_new);
        return Team_new;
    }


}
