updated lab 3 programs