implement basic grammar and maths