The student was bored in science class and had to write a 1 page essay about a science topic that night without any ideas. That night, they had a dream where lightning was explained to them in detail, including how it works like a battery and forms the zig zag shape. The dream provided enough information to write an A+ essay the next day about lightning.