How plans occur in novices' programs: A method to evaluate program-writing skills