work on 3-part for statement