I was about six when the Rubik’s Cube was invented, by a Hungarian architect named Erno Rubik. I remember when I first held one in my hands, twisting and turning the sides, trying to match the colours. It was an impossible toy: when I finally got the red in place, I discovered that the green was now on the wrong side! Or the yellow. Or the blue. Every action taken had an impact beyond my intention – today we call those unintended consequences – so terribly frustrating.
The official Rubik’s website www.rubiks.com provides solution guides. In my day, that would have been called cheating. But it’s an algorithm requiring much more than a little skill to apply, such that “speed cubers” compete to solve the cube. The current record, realized by Xuanyi Geng on the 13th of April 2025, is 3,05 seconds. It’s an algorithm, yes, but it’s also an entirely different way of thinking.

The Rubik’s cube has 6 sides with 9 tiles on each side. This offers 54 variables. Not all of these are equal, however. Eight corner pieces and 12 edge pieces provide specific opportunities and challenges. All in all, there are 43 quintillion possible combinations (43,252,003,274,489,856,000 to be exact).
Not unlike a city.
CAHF, together with SHOUT, Gmaurich Insights, and the Lincoln Institute of Land Policy have been exploring a neighbourhood in Nairobi, Kenya, known as Pipeline Estate. A tenement area, with eight storey walkups densely packed in a small 2km2 corner of Embakasi South, Pipeline is notorious. With something of 43 quintillion possibilities (give or take a few), we are using a Rubik’s Cube to try to understand it.
So, there are six sides: area, street, building, floor, room, person. Each of these interact with the others as we work to create a balance – a better view of a functioning city where everyone’s interests, capital, the private sector, the residents and the state, are all met.

We start with area. Pipeline is brilliantly located on major road and rail transport routes – Outer Ring Road, Jogoo road, Airport North Road, Nairobi Expressway & Mombasa Road. These roads connect residents with their rural ‘home’, and the rest of the city. It is in walking distance of employment opportunities (at the airport and in factories). It is on land that is geologically supportive of tall buildings. And the urban agglomeration created by this means that it is a 15-minute, 24-hour city with everything well within reach, all of the time.

The streets in Pipeline are dense and active, with pedestrian, vehicular, commercial and residential uses, all together, all the time. The few roads that have been paved by the government are 12 meters wide and allow for cars. These narrow to 9m wide roads that have been paved with interlocking “cabro” by local landlords, which narrow further to 6m wide pedestrian, unpaved and very muddy streets, and 3m wide pathways. Rubbish that gets left on the road, not collected by the city, is periodically compacted, raising the level of the road, creating a sort of urban “midden” and contributing to the image of squalor.

Pipeline’s buildings are changing. According to Google Earth, the area first started to develop around 2011. OIder buildings were built in the classic tenement form with tiny rooms, communal ablutions and the bare minimum of spec to save on costs, maximise affordability and attract the particular tenant niche of working poor who live there. Newer buildings are improving however – they have larger windows, en suite bathrooms, better light and ventilation.

Notwithstanding the absence of elevators, tenants generally prefer to live on higher floors, citing security as their main interest. Some report that cellphone coverage is also better higher up. Hallways are narrow, and in many buildings are filled with water cans to store water for use between when it flows in the taps. Lightwells improve ventilation and bring light into the inner core of the building. Circulation depends on an external balcony as well as an internal stairwell.

Rooms are tiny: from 11m2 to maybe 17m2 and providing accommodation for between 3-5 people. They have a single lightbulb in the ceiling and one electrical outlet. Most rooms are individually metered, so tenants pay for that directly, in addition to their monthly rental. Across our sample of 179 households, the lowest rent was KES 4,300 (about US$35) per month, and the highest was just over KES 12,000 per month (almost US$100). This is affordable to households earning between KES 10,000 (just under US$100) and KES 90,000 (just under US$700) per month. According to the researchers undertaking the social survey, 40% of the 179 units they surveyed had observable defects, ranging from dampness being the most common, through to foul smells, pooled water, open sewerage, and uneven stairs. For their part, across the 179 respondents interviewed, almost 40% highlighted water and sanitation issues as their most significant problems, followed by pests (14%), dampness and leaks (11%), and cleanliness issues (10%).

A total of 613 residents (just under half of them children) were identified as living in the 179 units we surveyed, suggesting an average household size among the sample of 3,4. Asked whether they defined Pipeline as their “home” about a third said yes, a third said no, and a third said that Pipeline was a temporary place. Across each of these three categories, the length of stay varied between having just arrived through to having lived in Pipeline for up to 30 years – therefore bearing no relation to whether the respondent thought this was home or not. Just over half of respondents said they are saving, and of the 58 who gave an explanation, just over a third said they were saving to build their own home or to buy land. The main reason for coming to Pipeline was its proximity to work, followed by the affordability of the units provided.

Speed cubers, when defining the algorithm for solving the cube, suggest that a cube has three layers: top, middle and bottom. Using the cube as a metaphor for the city, we can define three layers of intervention as well:

The top layer, the built environment, is the context as we’ve found it. The team at SHOUT has done extensive work to understand the shape, character, opportunities and constraints of Pipeline’s built environment.
The bottom layer, the policy regulatory and taxation framework sets the rules and parameters for action by the players operating in the middle layer. Pipeline has an interesting opportunity today – in August 2025, the county government of Nairobi passed a law on the regularization (approval) of unauthorised buildings. A three-year programme, the city expects that this will realise upwards of KES 5 billion in property taxes for buildings that have up until today escaped the regulatory radar.
And then the middle layer: market dynamics, or put otherwise, what is happening in real life. This is where we might find the ingredients to enable a solution for Pipeline, where the area, street, building, floor, room and people of pipeline converge.
So this is the challenge of the cube. Finding the algorithm that brings all of the capacities together to address the challenges and change the outcome in favour of better living conditions that are nonetheless affordable and accessible to this current population of the working poor.
At its most basic, Pipeline is already there, and housing over 200,000 people. In her (highly recommended) 2011 book[1] on tenement cities in Nairobi, Professor Marie Huchzermeyer estimates from 2009 aerial photography that at that time, there were 4861 tenements in North-eastern Nairobi, 3985 tenements in South-eastern Nairobi, and 1820 tenements in Western Nairobi, bringing the total to 10 666 – and that was before the Pipeline neighbourhood was created. Estimating an average of 21 units per building (much less than what we’ve seen in Pipeline), she suggests these accommodate 223 986 households, or at 3.3 people per unit, at least 739 154 people.
We know from census data that between 2009 and 2019, the number of urban Kenyan households who said they rented grew by 1.6 million.

With figures and growth rates like these, the 43 quintillion possibilities don’t sound so unreasonable.

Related Documents
Reflections on Pipeline from the Venice Architectural Biennale, 2025
Presentation on Urban Speedcubers
[1] Huchzermeyer, M (2011) Tenement Cities: From 19th Century Berlin to 21st Century Nairobi. Africa World Press, Trenton, New Jersey.