Bernie was writing a new fantasy novel.
When he woke up he finished the chapter with what he'd dreamt.
Bernie came down with an excellent idea for his book.
Bernie came up with an excellent idea for his book.