Lab2, Part1 - Updated Lab2.c