Some yards have approach passing sidings outside of town, where many trains can wait their turn into the yards. Trains usually come in on a receiving yard track...the mainline loco's are removed, and the drafts of cars are stored there. Then they are pulled by switcher locomotives, and are shoved, kicked, or gravity shunted down a hill (Hump), and are broken down by their intended destination towards various inbound classification tracks, where individual trains are made up. Some large yards have outbound departure classification tracks where trains further moved, and are stored until locos are dispatched for them. Altoona once had 17+ classification, inbound, outbound yards, and scale tracks where cars were weighed. The loco repair/maintenance/assembly/refueling facilities were a couple miles long, and employed thousands of workers. There were teams of "oilers" on both sides of incomming trains, some of who opened the axle friction bearing journal box lids, oiled them, repacked them, inspected, and knocked brass bearing wedges back into place, then the last man closed the journal box lids...all the while the train was still moving at @ 1 mph. Defective bad order cars are pulled, and are sent to rip tracks (repair in place), or are sent to the heavy maintenance shops.