When Cat was three she had an imaginary friend.
Gradually she stopped talking to her imaginary friend.
She stopped having an imaginary friend immediately.
She continued to have an imaginary friend for several years.