finished exp2.c(?)