added assignment2 and mid-term test prog.