2.Code written in half, main.c