fixed output of solution2.c and uploaded solution3