A Functional view of language teaching