You must add the function in another file, indicator.c is for educational purpose only.