removed an unnecessary variable from solution3.c