Using this method, the bus fare algorithm could be improved like this: ask how old you are IF you are under 5, THEN pay no fare ELSE IF you are under 16, THEN pay half fare ELSE IF you are an OAP ...