in that method, how to add this upper code in my project. is it add to main.c file or anything else and if this code add in main.c so where to add in main.c