The Genesis narrative, has a few stops and starts in the first two chapters. It goes from sweeping to more and more detailed. Gen 1:1, then Gen 1:2 to Gen 2:3 for the days. Then Gen 2:4 reverts back to Gen 1:26, with more detail, and concludes in Gen 2:25. The chronological narrative then picks up in Gen 3:1 and continues from there. Gen 1:2-3 is day one with God having created light, Hebrew word is אוֹר which has many connotations, but Gesenius's Lexicon refers to it as "light everywhere, diffused, such as daylight or sunlight." Hence God created the sun right after he created the earth, still on day one. Now look at day two, v6-8, God makes our atmosphere. NOT as we have today, but as He originally created it on that day, it was the planet covered with water(v2), then God put the atmosphere between a layer of the water and pushed THAT layer up so it was earth, surrounded by water, surrounded by atmosphere(vault/expanse/sky), surround by water. From a side view it looked like a five ring bullseye with the fiery core being the center and the outer envelope of water being the fifth ring. Then we get to v16, where God creates two great lights. The Hebrew word here is מָאוֹר and means "luminary", so what was it if the sun and planets were already created? At the end of v16, it says, "He also made the stars." We know the sun is a star so is this another flashback to v4 to provide more detail? I don't think so because it clearly says this is day 4, not day one. It also talks about a second great light, which most people will probably agree is the moon, except we KNOW today that the moon is NOT a light. We had to have sunlight already as vegetation was growing in vs11-13, which is the 3rd day. Or did it? If God created a fully mature earth, then He could create the vegetation one day and the light the next day. So what did God create on the 4th day? I believe that God created refraction in the water to act a certain way, and as we orbited the sun and the earth revolved, that refraction created light that was strong during a certain period of the day so fully illuminate the part of the world it was near, and at night the diffusion was much less, but still enough for people to see a little bit. The stars is another matter and I have no idea if God just put small ones in the actual sky, or if they we viewable through the water that surrounded the earth. It will be neat when I meet Jesus and ask him though.