ast optimize example added