Understanding structured programming