Parser works for program1 and program2