functional decomposition and for loops 8769465