Update homework1.c

added file saving/loading