Rework this text to remove grammatical flaws
No one could have imagined that she was such a brilliant person and when she gave the article to the boss the latter was quite astonished.
No one could have imagined that she was such a brilliant person and when she gave the article to the boss, the latter was quite astonished.