Cleaned lab2.c