Add for loop

Signed-off-by: Daniel Francis <francis@sugarlabs.org>