Added program2 and null functionality to program1.