Lab2, Part2 - Updated Lab2.c