A new approach to planning