Adding test programs from lecture1 and lecture2.