Added psudeocode 'plan'