Update main.c

I think there'a bug in the main code he posted at first, I added the initialization in f3