Attempt 2 using 2 loops