Bernie was writing a new fantasy novel.
When he woke up he finished the chapter with what he'd dreamt.
He was exhausted from working but couldn't fall asleep.
He was exhausted from working and fell fast asleep.