learning from trees
loop style (by librarian7**)