finished writing miser.c