Theory and practice of social planning