Applying the principles of quality of life to education