public void CreateEntities()
    {
        //initialize random start Bus-Stop
        rndStart = new Random(seed);
        //initialize random stop Bus-Stop
        rndStop = new Random(seed);
        //initialize random used for the Exponential distribution
        tmpExp = new Random(seed);
        
        //create the bus stops
        busStop = new BusStop[totalBusStops];    
        //create paeole at bus stops arrival distibution
        peopleArrival = new Exponential[totalBusStops];
        
        //generate distribution total
        int total=0;
        for(int x=0; x< totalBusStops; x++)
        {
            //add each distribution number
            total += distPeopleAtBusStops[x];
        }
        
        //instantiate each bus stop
        for(int x=0; x< totalBusStops; x++)
        {
            //initialize each bus stop
            busStop[x] = new BusStop(x);
            //initialize each bus stop arrival mean at person creation interval
            peopleArrival[x] = new Exponential(personArrivalInterval, tmpExp);
            
            if((x+1) != totalBusStops)
            {
                //set distribution for the total - 1 distributions
                distPeopleAtBusStops[x] = (int)Math.ceil((double)totalPopulation*((double)distPeopleAtBusStops[x]/(double)total));
            }
            else
            {
                //generate distribution difference for the last distribution
                int tot=0;
                for(int x1=0; x1< totalBusStops-1; x1++)
                {
                    //add each distribution number
                    tot += distPeopleAtBusStops[x1];
                }
                //set the last distribution to the remaining persons
                distPeopleAtBusStops[x] = totalPopulation-tot;
            }
            //log Bus Stop created
            outBusStop.WriteToFile(String.valueOf(x+1));
        }
    }