The Purpose of Education

What is the purpose of education? Who is supposed to do the educating? What topics should be covered? What should be the end result of education? Do we have any moral obligations in how we educate our children or are we free to choose any method whatsoever?