@Override
	public ParkingLot findCarPark(List<Component> parklist) {
		// TODO Auto-generated method stub		
		int max=0;
		int b=0;
		for(int i=0;i<parklist.size();i++)
		{
			if(parklist.get(i).getEmptySpace()>max)
			{
				max=parklist.get(i).getEmptySpace();
				b=i;
			}
		}
		if(max>0)
			return (ParkingLot) parklist.get(b);
		else
		    return null;
		}