An introduction to functional grammar