Separated drawing from creating grammar