SMS: Occupational and residential segregation