At four she was composing and improvising piano, and by five had begun writing down her compositions.
She was composing and improvising piano. This was at four. She by five had begun writing down her compositions. This was at four.