move instance creation into the action class for the grammar