first grammar tree design