finished parcial_2.c