move the sentences to make to make a logical sentence

There was a rainbow.
after the storm
The sun came out.

After the storm, the sun came out and there was a rainbow.

After the storm, the sun came out and there was a rainbow.