Got loops in loops working