implemented ast for statement