Lab5 additional code added.