我想到了一个主意。

An idea came to me.

Source: Tatoeba

Sentence Composition