It is possible to produce something that is grammatical either by chance or under the supervision of another. To be proficient in grammar, then, one must both produce what is grammatical and produce it grammatically, that is, in accord with knowledge of grammar in oneself.