Updated lab5 with pi-prod approximating procedure.