Throughout Catalonia many sectors of the economy fell under the control of the anarchist CNT and the socialist UGT trade unions, where workers' self-management was implemented. These included railways, streetcars, buses, taxicabs, shipping, electric light and power companies, gasworks and waterworks, engineering and automobile assembly plants, mines, mills, factories, food-processing plants, theaters, newspapers, bars, hotels, restaurants, department stores, and thousands of dwellings previously owned by the upper classes. While the CNT was the leading organization in Catalonia, it often shared power with the UGT. For example, control of the Spanish National telephone company, was put under a joint CNT-UGT committee.