In the final years of his life – and with his poor health beginning to slow him down – Ochieng persisted in his love for teaching.
He came into office with a reputation for making broken systems work, but as he began his second presidential term John Magufuli became known as a ruthless and ambitious authoritarian.
Mkapa, who penned an autobiography, had an impressive record in building state institutions. But his reign was marked by killings and political suppression.
A balance sheet of positives and negatives for Tanzania's president Magufuli is perhaps the most striking similarity with the legacy of Nyerere as the country marks another independence anniversary.